package com.woniu.service;


import com.woniu.entity.Alertvalues;
import com.woniu.mapper.AlertValuesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AlertValuesService {

    @Autowired
    private AlertValuesMapper alertValuesMapper;

    public void  save(Integer javascore,
                      Integer testscore,
                      Integer webscore){

        Alertvalues a1 = new Alertvalues();
        a1.setCourses("java");
        a1.setScore(javascore);

        Alertvalues a2 = new Alertvalues();
        a2.setCourses("web");
        a2.setScore(webscore);

        Alertvalues a3 = new Alertvalues();
        a3.setCourses("测试开发");
        a3.setScore(testscore);

        alertValuesMapper.insert(a1);
        alertValuesMapper.insert(a2);
        alertValuesMapper.insert(a3);
    }
}
